<div id="auth">
     
    <div class="formAuth">
        <form action="?control=auth" method="POST">
            Login:<br>
            <input class="log" type="text" name="log"><br>
            Password:<br>
            <input class="pas" type="password" name="pas"><br>
            <input type="submit" value="Enter"><input type="button" value="Registration" onclick="document.location='/?control=reg'">
            <div><?php if(isset($_SESSION['error'])){echo $_SESSION['error']; unset ($_SESSION['error']);}?></div>
        </form>
        
    </div>
    <div><?php $this->setTemplate('search');?></div>
</div>

